package comm.data;

import comm.bean.GroupBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.io.BufferedReader;
import java.io.FileReader;

@Component
public class ReadFileClass {
    @Autowired
    GroupBean groupBean;


    public String[] getReadFile() {
        String[] split = groupBean.getFilePath().split(",");

        return split;
//        String pathname = "input.txt";
//        try (FileReader fileReader = new FileReader(pathname);
//             BufferedReader br = new BufferedReader(fileReader);
//        ) {
//            String line;
//            while ((line = br.readLine()) != null) {
//                System.out.print(line);
//            }
//        } catch (Exception exception) {
//
//        }
    }
}
